import { ServiceProto } from 'tsrpc-proto';
import { MsgClearLine } from './game/MsgClearLine';
import { MsgComeUp } from './game/MsgComeUp';
import { MsgGameOver } from './game/MsgGameOver';
import { MsgGamePlaying } from './game/MsgGamePlaying';
import { MsgJoinOrLeaveLivingRoom } from './game/MsgJoinOrLeaveLivingRoom';
import { MsgJoinOrLeaveSeat } from './game/MsgJoinOrLeaveSeat';
import { MsgReadyOrNot } from './game/MsgReadyOrNot';
import { MsgSelectModel } from './game/MsgSelectModel';
import { MsgSink } from './game/MsgSink';
import { MsgStartGame } from './game/MsgStartGame';
import { ReqExitLivingRoom, ResExitLivingRoom } from './game/PtlExitLivingRoom';
import { ReqJoinGame, ResJoinGame } from './game/PtlJoinGame';
import { ReqJoinLivingRoom, ResJoinLivingRoom } from './game/PtlJoinLivingRoom';
import { ReqLeaveSeat, ResLeaveSeat } from './game/PtlLeaveSeat';
import { ReqPlayerInput, ResPlayerInput } from './game/PtlPlayerInput';
import { ReqReadyOrNot, ResReadyOrNot } from './game/PtlReadyOrNot';
import { ReqSelectModel, ResSelectModel } from './game/PtlSelectModel';
import { ReqStartGame, ResStartGame } from './game/PtlStartGame';
import { ReqLoginGame, ResLoginGame } from './login/PtlLoginGame';
import { MsgChat } from './MsgChat';
import { ReqSend, ResSend } from './PtlSend';

export interface ServiceType {
    api: {
        "game/ExitLivingRoom": {
            req: ReqExitLivingRoom,
            res: ResExitLivingRoom
        },
        "game/JoinGame": {
            req: ReqJoinGame,
            res: ResJoinGame
        },
        "game/JoinLivingRoom": {
            req: ReqJoinLivingRoom,
            res: ResJoinLivingRoom
        },
        "game/LeaveSeat": {
            req: ReqLeaveSeat,
            res: ResLeaveSeat
        },
        "game/PlayerInput": {
            req: ReqPlayerInput,
            res: ResPlayerInput
        },
        "game/ReadyOrNot": {
            req: ReqReadyOrNot,
            res: ResReadyOrNot
        },
        "game/SelectModel": {
            req: ReqSelectModel,
            res: ResSelectModel
        },
        "game/StartGame": {
            req: ReqStartGame,
            res: ResStartGame
        },
        "login/LoginGame": {
            req: ReqLoginGame,
            res: ResLoginGame
        },
        "Send": {
            req: ReqSend,
            res: ResSend
        }
    },
    msg: {
        "game/ClearLine": MsgClearLine,
        "game/ComeUp": MsgComeUp,
        "game/GameOver": MsgGameOver,
        "game/GamePlaying": MsgGamePlaying,
        "game/JoinOrLeaveLivingRoom": MsgJoinOrLeaveLivingRoom,
        "game/JoinOrLeaveSeat": MsgJoinOrLeaveSeat,
        "game/ReadyOrNot": MsgReadyOrNot,
        "game/SelectModel": MsgSelectModel,
        "game/Sink": MsgSink,
        "game/StartGame": MsgStartGame,
        "Chat": MsgChat
    }
}

export const serviceProto: ServiceProto<ServiceType> = {
    "version": 22,
    "services": [
        {
            "id": 7,
            "name": "game/ClearLine",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 22,
            "name": "game/ComeUp",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 8,
            "name": "game/GameOver",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 9,
            "name": "game/GamePlaying",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 14,
            "name": "game/JoinOrLeaveLivingRoom",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 13,
            "name": "game/JoinOrLeaveSeat",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 15,
            "name": "game/ReadyOrNot",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 20,
            "name": "game/SelectModel",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 10,
            "name": "game/Sink",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 16,
            "name": "game/StartGame",
            "type": "msg",
            "conf": {}
        },
        {
            "id": 11,
            "name": "game/ExitLivingRoom",
            "type": "api",
            "conf": {}
        },
        {
            "id": 17,
            "name": "game/JoinGame",
            "type": "api",
            "conf": {}
        },
        {
            "id": 12,
            "name": "game/JoinLivingRoom",
            "type": "api",
            "conf": {}
        },
        {
            "id": 19,
            "name": "game/LeaveSeat",
            "type": "api",
            "conf": {}
        },
        {
            "id": 5,
            "name": "game/PlayerInput",
            "type": "api",
            "conf": {}
        },
        {
            "id": 18,
            "name": "game/ReadyOrNot",
            "type": "api",
            "conf": {}
        },
        {
            "id": 21,
            "name": "game/SelectModel",
            "type": "api",
            "conf": {}
        },
        {
            "id": 6,
            "name": "game/StartGame",
            "type": "api",
            "conf": {}
        },
        {
            "id": 4,
            "name": "login/LoginGame",
            "type": "api",
            "conf": {}
        },
        {
            "id": 0,
            "name": "Chat",
            "type": "msg"
        },
        {
            "id": 1,
            "name": "Send",
            "type": "api"
        }
    ],
    "types": {
        "game/MsgClearLine/MsgClearLine": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "totalScore",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 3,
                    "name": "score_1",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 4,
                    "name": "score_2",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 5,
                    "name": "score_3",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 6,
                    "name": "score_4",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "addScore",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 2,
                    "name": "clearLine",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Number"
                        }
                    }
                },
                {
                    "id": 7,
                    "name": "team1_at_count",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 8,
                    "name": "team2_at_count",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 9,
                    "name": "team1_at_total",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 10,
                    "name": "team2_at_total",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 11,
                    "name": "seatId",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "base/BaseMessage": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "uid",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "game/MsgComeUp/MsgComeUp": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "selfMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 1,
                    "name": "otherMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                }
            ]
        },
        "game/MsgGameOver/MsgGameOver": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "isOver",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 1,
                    "name": "team1_isWon",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 2,
                    "name": "team2_isWon",
                    "type": {
                        "type": "Boolean"
                    }
                }
            ]
        },
        "game/MsgGamePlaying/MsgGamePlaying": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "input",
                    "type": {
                        "type": "Reference",
                        "target": "common/InputType"
                    }
                },
                {
                    "id": 5,
                    "name": "selfMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 6,
                    "name": "otherMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 7,
                    "name": "currentShape_1",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 8,
                    "name": "currentShape_2",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 9,
                    "name": "currentShape_3",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 10,
                    "name": "currentShape_4",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 11,
                    "name": "nextShape_1",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 12,
                    "name": "nextShape_2",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 13,
                    "name": "nextShape_3",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 14,
                    "name": "nextShape_4",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 4,
                    "name": "bornRowCol",
                    "type": {
                        "type": "Tuple",
                        "elementTypes": [
                            {
                                "type": "Number"
                            },
                            {
                                "type": "Number"
                            }
                        ]
                    },
                    "optional": true
                },
                {
                    "id": 16,
                    "name": "seatId",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 15,
                    "name": "TimeDown",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "common/InputType": {
            "type": "Enum",
            "members": [
                {
                    "id": 0,
                    "value": "1"
                },
                {
                    "id": 1,
                    "value": "2"
                },
                {
                    "id": 2,
                    "value": "3"
                },
                {
                    "id": 3,
                    "value": "4"
                },
                {
                    "id": 4,
                    "value": "5"
                },
                {
                    "id": 5,
                    "value": "6"
                }
            ]
        },
        "game/MsgJoinOrLeaveLivingRoom/MsgJoinOrLeaveLivingRoom": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "isJoin",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 1,
                    "name": "user",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/PlayerCmd"
                    }
                }
            ]
        },
        "commonRoom/PlayerCmd": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "uid",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "name",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "icon",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 3,
                    "name": "isReady",
                    "type": {
                        "type": "Boolean"
                    },
                    "optional": true
                }
            ]
        },
        "game/MsgJoinOrLeaveSeat/MsgJoinOrLeaveSeat": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "seatId",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "isJoin",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 2,
                    "name": "joinUser",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/PlayerCmd"
                    },
                    "optional": true
                }
            ]
        },
        "game/MsgReadyOrNot/MsgReadyOrNot": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "seatId",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "isReady",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 2,
                    "name": "canStart",
                    "type": {
                        "type": "Boolean"
                    },
                    "optional": true
                }
            ]
        },
        "game/MsgSelectModel/MsgSelectModel": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "model",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/GameModeCmd"
                    },
                    "optional": true
                },
                {
                    "id": 1,
                    "name": "subModel",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/SubModeCmd"
                    },
                    "optional": true
                }
            ]
        },
        "commonRoom/GameModeCmd": {
            "type": "Enum",
            "members": [
                {
                    "id": 0,
                    "value": 1
                },
                {
                    "id": 1,
                    "value": 2
                }
            ]
        },
        "commonRoom/SubModeCmd": {
            "type": "Enum",
            "members": [
                {
                    "id": 0,
                    "value": 1
                },
                {
                    "id": 1,
                    "value": 2
                },
                {
                    "id": 2,
                    "value": 3
                },
                {
                    "id": 3,
                    "value": 4
                }
            ]
        },
        "game/MsgSink/MsgSink": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 3,
                    "name": "selfMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 4,
                    "name": "otherMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 5,
                    "name": "currentShape_1",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 6,
                    "name": "currentShape_2",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 7,
                    "name": "currentShape_3",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 8,
                    "name": "currentShape_4",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 9,
                    "name": "nextShape_1",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 10,
                    "name": "nextShape_2",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 11,
                    "name": "nextShape_3",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 12,
                    "name": "nextShape_4",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                }
            ]
        },
        "game/MsgStartGame/MsgStartGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseMessage"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "countdown",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "game",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/GameDataCmd"
                    }
                }
            ]
        },
        "commonRoom/GameDataCmd": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "scorer",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 5,
                    "name": "selfMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 6,
                    "name": "otherMap",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 7,
                    "name": "nextShape_1",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 8,
                    "name": "nextShape_2",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 9,
                    "name": "nextShape_3",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 10,
                    "name": "nextShape_4",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Array",
                            "elementType": {
                                "type": "Number"
                            }
                        }
                    }
                }
            ]
        },
        "game/PtlExitLivingRoom/ReqExitLivingRoom": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "roomId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "base/BaseRequest": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "session",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "game/PtlExitLivingRoom/ResExitLivingRoom": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "base/BaseResponse": {
            "type": "Interface"
        },
        "game/PtlJoinGame/ReqJoinGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "seatId",
                    "type": {
                        "type": "Number"
                    },
                    "optional": true
                }
            ]
        },
        "game/PtlJoinGame/ResJoinGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "game/PtlJoinLivingRoom/ReqJoinLivingRoom": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "roomId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "game/PtlJoinLivingRoom/ResJoinLivingRoom": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "livingRoom",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/LiveRoomCmd"
                    }
                }
            ]
        },
        "commonRoom/LiveRoomCmd": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "roomId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "seats",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "commonRoom/SeatCmd"
                        }
                    }
                },
                {
                    "id": 2,
                    "name": "model",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/GameModeCmd"
                    }
                },
                {
                    "id": 3,
                    "name": "subModel",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/SubModeCmd"
                    }
                },
                {
                    "id": 4,
                    "name": "game",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/GameDataCmd"
                    },
                    "optional": true
                },
                {
                    "id": 5,
                    "name": "startTime",
                    "type": {
                        "type": "Number"
                    },
                    "optional": true
                },
                {
                    "id": 6,
                    "name": "endTime",
                    "type": {
                        "type": "Number"
                    },
                    "optional": true
                }
            ]
        },
        "commonRoom/SeatCmd": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "id",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "team",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/TeamCmd"
                    }
                },
                {
                    "id": 2,
                    "name": "isOwner",
                    "type": {
                        "type": "Boolean"
                    },
                    "optional": true
                },
                {
                    "id": 3,
                    "name": "user",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/PlayerCmd"
                    },
                    "optional": true
                }
            ]
        },
        "commonRoom/TeamCmd": {
            "type": "Enum",
            "members": [
                {
                    "id": 0,
                    "value": 0
                },
                {
                    "id": 1,
                    "value": 1
                },
                {
                    "id": 2,
                    "value": 2
                }
            ]
        },
        "game/PtlLeaveSeat/ReqLeaveSeat": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "game/PtlLeaveSeat/ResLeaveSeat": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "game/PtlPlayerInput/ReqPlayerInput": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "input",
                    "type": {
                        "type": "Reference",
                        "target": "common/InputType"
                    }
                }
            ]
        },
        "game/PtlPlayerInput/ResPlayerInput": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "game/PtlReadyOrNot/ReqReadyOrNot": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "isReady",
                    "type": {
                        "type": "Boolean"
                    }
                }
            ]
        },
        "game/PtlReadyOrNot/ResReadyOrNot": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "game/PtlSelectModel/ReqSelectModel": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "model",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/GameModeCmd"
                    },
                    "optional": true
                },
                {
                    "id": 1,
                    "name": "subModel",
                    "type": {
                        "type": "Reference",
                        "target": "commonRoom/SubModeCmd"
                    },
                    "optional": true
                }
            ]
        },
        "game/PtlSelectModel/ResSelectModel": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "game/PtlStartGame/ReqStartGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "game/PtlStartGame/ResStartGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "login/PtlLoginGame/ReqLoginGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "token",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "login/PtlLoginGame/ResLoginGame": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "session",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "uid",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 2,
                    "name": "now",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "MsgChat/MsgChat": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "content",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "time",
                    "type": {
                        "type": "Date"
                    }
                }
            ]
        },
        "PtlSend/ReqSend": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "content",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlSend/ResSend": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "time",
                    "type": {
                        "type": "Date"
                    }
                }
            ]
        }
    }
};